#include "jabberid.h"

JabberID::JabberID()
{
    hash = -1;
}

JabberID::JabberID(const std::string &jid)
    :gloox::JID(jid)
{
    hash = -1;
}

JabberID::JabberID(const QString jid)
    :gloox::JID(jid.toStdString())
{
    hash = -1;
}

bool JabberID::operator ==(const JabberID jid) const
{
    return (this->hash == jid.hash);
}

bool JabberID::operator !=(const JabberID jid) const
{
    return (this->hash != jid.hash);
}

bool JabberID::valid() const
{
    return (hash != -1)?true:false;
}


